﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Composite.Modularity;
using MyApp.Infrastructure.Messages;
using MyApp.Modules.Sales.Menu;

namespace MyApp.Modules.Sales
{
    public class Module : IModule
    {

        #region IModule Members

        public void Initialize()
        {
            Messenger.Get<MenuOptionMessage>().Publish(new MenuOptionMessageArgs
            {
                Command = Commands.ViewPendingOrdersCommand,
                Text = "Pending Orders",
                Group = "Sales"
            });
            Messenger.Get<MenuOptionMessage>().Publish(new MenuOptionMessageArgs
            {
                Command = Commands.ViewProcessedOrdersCommand,
                Text = "Processed Orders",
                Group = "Sales"
            });
        }

        #endregion
    }
}
